<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- examples.qdoc -->
  <title>Qt Examples And Tutorials | Qt 5.12 5.12.3</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="index.html">Qt 5.12</a></td><td >Qt Examples And Tutorials</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.12.3 参考指南</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">目录</a></h3>
<ul>
<li class="level1"><a href="#running-the-examples">运行这些示例</a></li>
<li class="level1"><a href="#community-examples">社区的示例</a></li>
<li class="level1"><a href="#all-examples">所有的示例</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt实例和教程</h1>
<span class="subtitle"></span>
<!-- $$$qtexamplesandtutorials.html-description -->
<div class="descr"> <a name="details"></a>
<p>Qt提供了一系列代码示例和教程，帮助新用户开始Qt开发。这些文档涵盖了从部件的基本使用到演示如何组合应用程序的逐步教程的一系列主题。</p>
<p>这些示例是Qt软件包的一部分。更多信息请访问<a href="http://qt.io/download">下载</a>页面。</p>
<a name="running-the-examples"></a>
<h2 id="running-the-examples">运行这些示例</h2>
<p>在Qt Creator的<b>欢迎</b>下打开并运行示例。大多数示例可运行在各种平台上，要搜索特定于平台的示例，请在搜索字段中键入平台名称(或任何关键字)。例如，在搜索字段中键入<code>Android</code> 列出了与Android完全兼容的示例。</p>
<p>有关在Qt Creator中运行示例的更多信息，请访问<a href="http://doc.qt.io/qtcreator/creator-build-example-application.html">构建并运行示例</a>页面。</p>
<p>要查看所有Qt示例的列表，请访问<a href="all-examples.html">Qt示例列表</a>页面。</p>
<div class="multi-column"><div class="doc-column"><p><b>建立项目</b></p>
<ul>
<li><a href="http://doc.qt.io/qtcreator/quick-projects.html">Qt Quick项目</a></li>
<li><a href="http://doc.qt.io/qtcreator/creator-writing-program.html">Qt Widget项目</a></li>
<li><a href="http://doc.qt.io/qtcreator/creator-configuring-projects.html">配置项目</a></li>
</ul>
</div><div class="doc-column"><p><b>要素</b></p>
<ul>
<li><a href="http://doc.qt.io/qtcreator/creator-building-targets.html">为多个平台构建</a></li>
<li><a href="http://doc.qt.io/qtcreator/creator-running-targets.html">在多个平台运行</a></li>
<li><a href="http://doc.qt.io/qtcreator/creator-deployment.html">部署到设备</a></li>
<li><a href="http://doc.qt.io/qtcreator/creator-connecting-mobile.html">s连接设备</a></li>
</ul>
<ul>
<li><a href="http://doc.qt.io/qtcreator/creator-building-running.html">更多…</a></li>
</ul>
</div><div class="doc-column"><p><b>不同平台示例</b></p>
<ul>
<li><a href="examples-android.html">Android</a></li>
<li><a href="examples-ios.html">iOS</a></li>
<li><a href="../qtmacextras/examples-qtmacextras.html">Mac相关</a></li>
<li><a href="../qtwinextras/examples-qtwinextras.html">Windows相关</a></li>
<li><a href="../activeqt/activeqt-index.html#examples">Active Qt示例</a></li>
</ul>
</div><div class="doc-column"><p><b>QML以及Qt Quick</b></p>
<ul>
<li><a href="qmlfirststeps.html">QML起步</a></li>
<li><a href="http://doc.qt.io/qtcreator/creator-visual-editor.html">开发Qt Quick 应用程序s</a></li>
<li><a href="../qtquickcontrols1/qtquickcontrols1-gallery-example.html">Qt Quick 控件 1 - Gallery</a></li>
<li><a href="../qtquickcontrols/qtquickcontrols-gallery-example.html">Qt Quick 控件 2 - Gallery</a></li>
<li><a href="../qtquick/qml-advtutorial.html">SameGame游戏<a></li>
<li><a href="qtquickcontrols-texteditor.html">文本编辑器（TextEditor）指南</a></li>
</ul>
<ul>
<li><a href="../qtquick/qtquick-codesamples.html">更多…</a></li>
</ul>
</div><div class="doc-column"><p><b>组件</b></p>
<ul>
<li><a href="../qtwidgets/qtwidgets-tutorials-notepad-example.html">文本编辑器（Text Editor）</a></li>
<li><a href="../qtwidgets/modelview.html">模式-视图（Model-View）</a></li>
<li><a href="../qtwidgets/examples-itemviews.html">项目视图（Item View）示例</a></li>
<li><a href="../qtwidgets/examples-mainwindow.html">主窗口（Main Window）示例</a></li>
<li><a href="examples-layouts.html">布局（Layout）示例</a></li>
<li><a href="../qtwidgets/stylesheet-examples.html">样式表示例</a></li>
</ul>
<ul>
<li><a href="../qtwidgets/examples-widgets.html">更多…</a></li>
</ul>
</div><div class="doc-column"><p><b>图形</b></p>
<ul>
<li><a href="../qtquick/qtquick-scenegraph-openglunderqml-example.html">QML中的OpenGL</a></li>
<li><a href="../qtquick/qtquick-customitems-painteditem-example.html">绘图项（Painted Item）</a></li>
<li><a href="../qtwidgets/examples-painting.html">绘图示例</a></li>
<li><a href="../qtwidgets/examples-graphicsview.html">图形视图示例</a></li>
<li><a href="../qtwidgets/examples-richtext.html">富文本示例</a></li>
<li><a href="examples-animation.html">动画框架的示例</a></li>
</ul>
</div><div class="doc-column"><p><b>数据和网络</b></p>
<ul>
<li><a href="../qtnetwork/examples-network.html">网络示例</a></li>
<li><a href="examples-sql.html">SQL示例</a></li>
<li><a href="examples-xml.html">XML示例</a></li>
<li><a href="../qtcore/qtcore-serialization-savegame-example.html">JSON保存游戏示例</a></li>
<li><a href="../qtwebchannel/qtwebchannel-examples.html">Qt WebChannel示例</a></li>
<li><a href="../qtwebengine/webengine-examples.html">Qt WebEngine 示例</a></li>
<li><a href="../qtwebengine/webengine-widgetexamples.html">Qt WebEngine 组件示例</a></li>
<li><a href="../qtwebsockets/qtwebsockets-examples.html">WebSocket示例</a></li>
</ul>
</div><div class="doc-column"><p><b>应用程序</b></p>
<ul>
<li><a href="../qtwidgets/qtwidgets-mainwindows-application-example.html">Application示例</a></li>
<li><a href="../qtquick/qtquick-window-example.html">窗口和屏幕示例</a></li>
<li><a href="plugins-howto.html">如何创建Qt插件</a></li>
<li><a href="../qtwidgets/qtwidgets-tools-plugandpaint-app-example.html">Plug &amp; Paint示例</a> (插件示例)</li>
</ul>
</div><div class="doc-column"><p><b>进程和线程</b></p>
<ul>
<li><a href="thread-basics.html">线程的基本知识</a></li>
<li><a href="examples-threadandconcurrent.html">线程和并发编程的示例</a></li>
<li><a href="../qtdbus/examples-dbus.html">D-Bus示例</a></li>
<li><a href="examples-ipc.html">进程间通信(IPC)的示例</a></li>
</ul>
</div><div class="doc-column"><p><b>多媒体</b></p>
<ul>
<li><a href="../qtmultimedia/qtmultimedia-multimediawidgets-player-example.html">媒体播放器</a></li>
<li><a href="../qtmultimedia/qtmultimedia-multimediawidgets-videowidget-example.html">视频组件</a></li>
<li><a href="../qtmultimedia/qtmultimedia-multimediawidgets-camera-example.html">相机示例</a></li>
</ul>
<ul>
<li><a href="../qtmultimedia/multimedia-examples.html">更多…</a></li>
</ul>
</div><div class="doc-column"><p><b>外围设备及位置</b></p>
<ul>
<li><a href="../qtbluetooth/bluetooth-examples.html">Bluetooth示例</a></li>
<li><a href="../qtlocation/qtlocation-examples.html">Location（位置）示例</a></li>
<li><a href="../qtnfc/nfc-examples.html">NFC示例</a></li>
<li><a href="../qtpositioning/qtpositioning-examples.html">定位的示例</a></li>
<li><a href="../qtsensors/qtsensors-examples.html">传感器示例</a></li>
<li><a href="../qtserialport/qtserialport-examples.html">串口示例</a></li>
<li><a href="../qtserialbus/qtserialbus-examples.html">串行总线示例</a></li>
</ul>
</div><div class="doc-column"><p><b>工具</b></p>
<ul>
<li><a href="../qtassistant/examples-qtassistant.html">Qt助手示例</a></li>
<li><a href="../qtdesigner/examples-designer.html">Qt设计师示例</a></li>
<li><a href="../qthelp/examples-qthelp.html">Qt Help示例</a></li>
<li><a href="../qtlinguist/examples-linguist.html">Qt语言学家示例</a></li>
<li><a href="http://doc.qt.io/qtcreator/index.html">Qt Creator手册</a></li>
</ul>
</div></div><a name="community-examples"></a>
<h2 id="community-examples">社区的示例</h2>
<p>要查看和运行Qt项目提供的示例，请访问<a href="http://wiki.qt.io/Category:Learning::Demos_and_Examples">社区的示例</a> 页面。</p>
<a name="all-examples"></a>
<h2 id="all-examples">所有的示例</h2>
<p><a href="qtexamples.html">所有的Qt示例</a> 列出了它们所属的Qt模块分类的所有示例。</p>
</div>
<!-- @@@qtexamplesandtutorials.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
